package morphage.gui;

import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.Dimension;
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;

public class AppAnimationControlPanel extends JPanel 
{
	private static final long serialVersionUID = 1L;
	
	public static final int 			WIDTH 	= 800;
	public static final int 			HEIGHT	= 70;
	public static final Border 		BORDER 	= new EmptyBorder(4,4,4,4);
	
	private JSlider					m_interpolationSlider;
	private JProgressBar    m_progressBar;
	
	public AppAnimationControlPanel()
	{
	  setLayout(new BorderLayout());
    setPreferredSize(new Dimension(WIDTH, HEIGHT)); 
    
    // Interpolation slider
		m_interpolationSlider 	= new JSlider(0, 100, 0);
		//m_interpolationSlider.setSize(new Dimension(WIDTH,HEIGHT));
		m_interpolationSlider.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		m_interpolationSlider.setPaintLabels( true );
		m_interpolationSlider.add(new JLabel("hyer"));
		add("North", m_interpolationSlider);
		
		// Progress bar
		m_progressBar = new JProgressBar(0, 100);
		m_progressBar.setValue( 0 );
		add( "South", m_progressBar );
	}
}
